package org.jeecg.modules.user.api;

import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.user.api.fallback.JeecgUserFallback;
import org.jeecg.modules.user.entity.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "jeecg-user", fallbackFactory = JeecgUserFallback.class)
public interface JeecgUserApi {

    @GetMapping(value = "/company/wlhyCompany/info")
    Result<WlhyCompany> info();


    @PostMapping(value = "/company/wlhyCompanyBothSides/add")
    Result<String> add(@RequestBody WlhyCompanyBothSides wlhyCompanyBothSides);


    @ApiOperation(value="车辆表-获取车辆信息", notes="车辆表-获取车辆信息")
    @GetMapping(value = "/user-api/vehicle/wlhyVehicle/myVehicle")
    public Result<WlhyVehicle> myVehicle();

    @ApiOperation(value = "用户银行卡管理-获取默认银行卡", notes = "用户银行卡管理-获取默认银行卡")
    @GetMapping(value = "/user-api/user/wlhyUserBank/myDefaultBank")
    public Result<WlhyUserBank> myDefaultBank();

    @ApiOperation(value="公司常用司机表-添加", notes="公司常用司机表-添加")
    @PostMapping(value = "/user-api/company/wlhyCompanyDriver/addCompanyDriver")
    public Result<String> addCompanyDriver(@RequestBody WlhyCompanyDriver wlhyCompanyDriver);
}
